<!doctype html>
<html lang="en">
<head>
<?=set_base();?>
<meta charset="UTF-8">
<title>Dashboard - Admin Template</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/content1.css" />
</head>
<body>
<script src="/static/js/jquery-1.11.1.js"></script> 
<script src="/static/js/plugin/validate/jquery.validate-1.13.1.js"></script>
<script src="/static/js/plugin/box/box.js"></script> 
<script type="text/javascript" charset="utf-8" src="/static/editor/baidu/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/editor/baidu/ueditor.all.min.js"> </script>
<script src="js/global.js"></script>
<script src="js/article.js"></script>
<div id="wrapper">
    <div id="content">
        <div id="box">
        	<h3>关于我们</h3>
            <form id="form">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td width="10%" height="30" align="right" class="b">标题：</td>
                        <td width="90%" height="30" align="left"><input name="Title" class="form_input_80per required" maxlength="20" data-msg-required="请填写标题" value="<?=$article['Title']?>" type="text" /></td>
                    </tr>
                    <?php if($configuration['isUpload']){?>
                    <tr>
                        <td width="10%" height="30" align="right" class="b">图片上传：</td>
                        <td width="90%" height="30" align="left">
                            <script id="upload" type="text/plain" style="width:1024px;height:500px;"></script>
                            <input id="button1" class="form_btn_120 btn_bg" type="button" value=" 选择图片 " onclick="upImage()" style="margin:0px;" /> (图片限制上传数目5张)
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" height="30" align="right" class="b">图片预览</td>
                        <td id="image_item">
                        	<?php 
							for($i=0;$i<5;$i++){
								if($article['PicPath_'.$i]){
							?>
                            <div class="info_frame">
                                <div class="img"><img src="<?=$article['PicPath_'.$i]?>" width="78"></div>
                                <div class="del">删除</div>
                                <input type="hidden" name="PicPath[]" value="<?=$article['PicPath_'.$i]?>">
                            </div>
                            <?php 
								}
							}
							?>
                        </td>
                    </tr>
                    <?php }?>
                    <tr>
                        <td width="10%" height="30" align="right" class="b">详细介绍：</td>
                        <td width="90%" height="30" align="left"><script id="editor" name="Contents" style="width:100%; height:320px" type="text/plain"><?=$article['Contents']?></script></td>
                    </tr>
                </table>
        		<div align="center">
        			<input id="button1" class="form_btn_120 btn_bg" type="submit" value=" 提交 " />
                    <input id="button2" class="form_btn_120 btn_bg" type="button" value=" 返回 " onclick="window.location.href='<?=base_url('article/index/'.$gid.'/')?>'" />
                    <input type="hidden" name="page" value="<?=$page?>">
                    <input type="hidden" name="aid" value="<?=$aid?>">
        		</div>
        	</form>
        </div>
    </div>
</div>
<script src="js/editor.js"></script>
<?php if($configuration['isUpload']){?>
<script src="js/upload.js"></script>
<?php }?>
</body>
</html>
